Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable s8 in QuantizedMaxPool2d kernel #1304

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ZhiweiYan-96
Copy link
Contributor

Add kChar to the allow data type in QuantizedMaxPool2d kernel, it is required at PT2E side.

@@ -32,7 +33,7 @@ class QMaxPool_arr_args final {
bool ceil_mode) {
// Now we only support Byte, qint is not supported.
TORCH_CHECK(
qx.scalar_type() == c10::ScalarType::Byte,
qx.scalar_type() == c10::ScalarType::Byte || qx.scalar_type() == c10::ScalarType::Char,
"QuantizedMaxPool2d only supports Byte for xpu now");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the error log correct.

Copy link
Contributor Author

@ZhiweiYan-96 ZhiweiYan-96 Jan 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have fixed, thanks for your kind reminding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants